<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>浏览-在线相册信息管理</title>
</head>
<body bgcolor="#02326B" link="balck" alink="red" vlink="black">
	<center>
		{% include 'myphoto/menuphoto.html'%}
		<table width='600' border="1">
			<tr>
				<th>id号</th>
				<th>标题</th>
				<th>图片</th>
				<th>时间</th>
				<th>操作</th>
			</tr>
			{% for p in plist %}
				<tr>
					<td align="center">{{ p.id }}</td>
					<td align="center">{{ p.title }}</td>
					<td align="center"> <img src="/static/pics/{{ p.picture }}"></td>
					<td align="center">{{ p.time |date:'Y-m-d H:i:s'}}</td>
					<td align="center">
						<a href="{% url 'editphoto' p.id%}">修改</a>
						<a href="{% url 'delphoto' p.id%}">删除</a>
					</td>
				</tr>
			{% endfor %}
		</table>
		<br>
		{% for i in page %}
			{% if i == pIndex %}
				<b style="color:red">{{i}}</b>&nbsp;&nbsp;
			{% else %}
				<a href="{% url 'browsephoto' i%}">{{i}}</a>&nbsp;&nbsp;
			{% endif%}
		{% endfor%}
	</center>
	<hr>
</body>
</html>